package com.xcc.strategypattern.demo03;

/**
 * @Description: MallardDuck
 * @Author: xiechuang
 * @Date: 2022/5/20
 */
public class MallardDuck extends Duck {

    public MallardDuck() {
        quackBehavior = new Quack();
        flyBehavior = new FlyWithWings();
    }

    @Override
    public void display() {
        System.out.println("I'm real Mallard duck");
    }

}
